package com.xinsoft.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xinsoft.common.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 计划备件
 * @TableName cus_upkeep_plan_spare
 */
@Data
public class CusUpkeepPlanSpare extends BaseEntity implements Serializable {

    /**
     * 保养计划ID
     */
    private Integer upkeepPlanId;

    /**
     * 备件表ID
     */
    private Integer deviceSpareId;

    /**
     * 备件名称
     */
    @TableField(exist = false)
    private String spareName;

    /**
     * 备件型号
     */
    @TableField(exist = false)
    private String spareNo;

    /**
     * 备件规格
     */
    @TableField(exist = false)
    private String spareSpecific;

    /**
     * 物料单位
     */
    @TableField(exist = false)
    private String mainUnitName;

    /**
     * 使用数量
     */
    private Integer useNum;

    /**
     * 单价
     */
    private Double perPrice;

    /**
     * 总金额
     */
    private Double totalPrice;

    /**
     * 备注
     */
    private String spareDesc;

    /**
     * 重载一次，因为这是关系表，编辑的时候方便直接物理删除
     */
    @ApiModelProperty(value = "操作标志(0-正常，1-刪除)", notes = "")
    @TableField(fill = FieldFill.INSERT,updateStrategy = FieldStrategy.NOT_NULL)
    private Integer doDelete;

    private static final long serialVersionUID = 1L;
}